<?php

class Content extends Controller {
	
	function Content() {
		parent::Controller ();
		$this->lang->load( 'admin', 'vietnamese' );
		$this->load->helper( 'admin_helper' );
		$this->load->helper( 'link_helper' );
		$this->config->load('wcms_config');
		
		check_login();
	}
	
	function index() {
		
		$data = array(
			'title'		=> $this->lang->line('admin_welcome'),
			'do'		=> 'content',	
		);
				
		$this->load->view ( ADMINPATH . 'admin_header', $data );
		$this->load->view ( ADMINPATH . 'admin_index', $data );
		$this->load->view ( ADMINPATH . 'admin_footer', $data );
	}
}
